﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class HunterAnimController : MonoBehaviour
{

    Animator anim;


    private void Awake()
    {
        anim = gameObject.GetComponent<Animator>();
    }

    public void PlayWalk(float speed)
    {
        anim.SetFloat("speed", speed);
    }

    public void PlayTurn()
    {
        anim.Play("Turn");
        //anim.SetBool("isTurn", true);
        //anim.SetBool("isTurn", false);
    }

    public void PlayAttack()
    {
        //anim.SetBool("Attack",Attack);
        anim.Play("Attack");
    }

    public void PlayJump(bool jump)
    {
        anim.SetBool("jump", jump);
    }

}
